/**
 * 
 */
package com.testvideo.util;

/**
 * @author Administrator
 *
 */
public class LangUtil {
	
	public static long string2Long(String value){
		try{
			return Long.parseLong(value) ;
		}catch(Exception e){
			return -1 ;
		}
	}
	
	public static float string2Float(String value){
		try{
			return Float.parseFloat(value) ;
		}catch(Exception e){
			return -1.0f ;
		}
	}
	
	public static int string2Int(String value){
		try{
			return Integer.parseInt(value) ;
		}catch(Exception e){
			return -1 ;
		}
	}

}
